<?php
	if(isset($_GET['cource'])) {
		mysql_connect('localhost', 'root', '');
	
		mysql_select_db('poll');
		
		$query = "UPDATE votes SET vote = vote + 1 
					WHERE num = {$_GET['cource']}";
		
		$res = mysql_query($query);
		mysql_close();
	}
	header('Location:index.php');
?>